//
//  ZMNavigationBar.h
//  ZMKitDemo
//
//  Created by zm on 2018/6/19.
//  Copyright © 2018年 zm. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZMNavigationBar;
@protocol ZMNavigationBarDelegate <NSObject>

@optional
- (void)navigationBar:(ZMNavigationBar *)bar onClickLeftItem:(UIButton *)leftItem;
- (void)navigationBar:(ZMNavigationBar *)bar onClickRightItem:(UIButton *)rightItem;

@end


@interface ZMNavigationBar : UIView

@property (nonatomic, weak) id<ZMNavigationBarDelegate> delegate;

@property (nonatomic, copy) NSString *title;
@property (nonatomic) UIView *titleView;
@property (nonatomic) UIButton *leftItem;
@property (nonatomic) UIButton *rightItem;
@property (nonatomic) UIView *headLine;
@end
